import { $t } from "@/plugins/i18n";
import { home } from "@/router/enums";
const { VITE_HIDE_HOME } = import.meta.env;
const Layout = () => import("@/layout/index.vue");

// 动态导入 sys 文件夹下的所有路由模块
const sysRoutes = import.meta.glob("../sys/*.ts", { eager: true });
const children = Object.values(sysRoutes).map((module: any) => module.default);

export default {
  path: "/sys",
  name: "SystemHide",
  component: Layout,
  redirect: "/welcome",
  meta: {
    icon: "ep/home-filled",
    title: "折叠菜单",
    rank: home
  },
  children: children
} satisfies RouteConfigsTable;
